<?php
class Mwc_SystemPoint_Block_Group_New_Form extends Mage_Adminhtml_Block_Widget_Form{
    protected function _prepareForm(){
        $form = new Varien_Data_Form();
 
        $fieldset = $form->addFieldset('new_group', array('legend' => Mage::helper('systempoint')->__('Group Setting Details')));
        $fieldset->addField('group_name', 'text', array(
            'name'      => 'group_name',
            'title'     => Mage::helper('systempoint')->__('Group name'),
            'label'     => Mage::helper('systempoint')->__('Group name'),
            'required'  => true,
        ));
        $fieldset->addField('email_format', 'text', array(
            'name'      => 'email_format',
            'title'     => Mage::helper('systempoint')->__('Email format'),
            'label'     => Mage::helper('systempoint')->__('Email format'),
            'required'  => true,
        ));
        $fieldset->addField('point', 'text', array(
            'name'      => 'point',
            'title'     => Mage::helper('systempoint')->__('Shadow point'),
            'label'     => Mage::helper('systempoint')->__('Shadow point'),
            'required'  => true,
        ));
		
        $form->setMethod('post');
        $form->setUseContainer(true);
        $form->setId('edit_form');
        $form->setAction($this->getUrl('*/*/post'));
 
        $this->setForm($form);
    }
}